function [neuralGasMap] = removeLinks(neuralGasMap,linkInformation,FACTOR)
    linkMatrix = neuralGasMap.linkMatrix;
    for bmu1=1:size(linkInformation,1)
        for bmu2=1:size(linkInformation,2)
            if (linkInformation(bmu1,bmu2)<FACTOR) 
                linkMatrix(bmu1,bmu2)=-1;
                linkMatrix(bmu2,bmu1)=-1;
            end
        end
    end

    neuralGasMap.linkMatrix = linkMatrix;
    return
    